package com.cqjtu.eecs.mapper;

import com.cqjtu.eecs.entity.ProjectCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cqjtu.eecs.entity.dto.PracticeCourseDTO;
import com.cqjtu.eecs.entity.vo.CourseTypeVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 培养方案-课程 Mapper 接口
 * </p>
 *
 * @author    
 * @since 2022-03-07
 */
@Mapper
@Repository
public interface ProjectCourseMapper extends BaseMapper<ProjectCourse> {

    List<CourseTypeVo> getTheoryCourseByMajorCode(String pid);

    List<PracticeCourseDTO> getPracticeCourseByMajorCode(String pid);

    /**
     * 根据年级 专业代码 课程编号查询 方案-课程id
     * @param grade
     * @param majorCode
     * @param courseId
     * @return
     */
    Integer getId(@Param("grade") Integer grade, @Param("majorCode") String majorCode, @Param("courseId") Integer courseId);
}
